﻿using System;
using System.Collections.Generic;

namespace Eneta.Portal.Common.Dto
{
    public class EventDto : BaseDto
    {
        public int MaxAttendees { get; set; }
        public string Location { get; set; }
        public string LocationUrl { get; set; }
        public string Description { get; set; }
        public string ShortDescription { get; set; }
        public string TechnicalLevel { get; set; }
        public string FileName { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public bool HasRealEvent { get; set; }
        public bool HasVirtualEvent { get; set; }
        public string Audience { get; set; }
        public int PercentOfSlides { get; set; }
        public int PercentOfDemos { get; set; }
        public DateTime RegistrationEndDate { get; set; }
        public IList<string> Audiences { get; set; }
        public string BannerImageUrl { get; set; }
        public string BannerTargetUrl { get; set; }

        public IList<EventCommentDto> Comments { get; set; }

        public EventDto()
        {
            Comments = new List<EventCommentDto>(20);
        }

        public override bool Equals(object obj)
        {
            var otherEvent = obj as EventDto;
            if (otherEvent == null)
                return false;

            return (Id == otherEvent.Id);
        }
    }
}
